package com.yudaxian.sys.mapper;

import com.yudaxian.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yudaxian
 * @since 2023-09-21
 */
public interface UserMapper extends BaseMapper<User> {
    //查询一个用户，登录时
    User selectOneByUsernameAndPassword(@Param("username") String username);

    List<String> selectRoleNameById(@Param("id") Integer id);

    User getUserById(Integer id);
}
